package org.kolonitsky.alexey.events
{
    import flash.events.Event;
    import flash.events.TextEvent;
    
    
    public class MessageEvent extends TextEvent
    {
        public static const ERROR:String = "error";
		
		public var errorCode:String = "";
		 
        public function MessageEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, text:String="", errorCode:String = "")
        {
            super(type, bubbles, cancelable, text);
			this.errorCode = errorCode;
        }
        
        override public function clone():Event
        {
            return new MessageEvent(type, bubbles, cancelable, text, errorCode);
        }
    }
}